/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.Seat;
import com.sasis.dao.SeatDao;
import com.sasis.service.SeatManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class SeatManagerImpl extends BaseManager implements SeatManager {
    private SeatDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setSeatDao(SeatDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.SeatManager#getSeats(com.sasis.model.Seat)
     */
    public List getSeats(final Seat seat) {
        return dao.getSeats(seat);
    }

    /**
     * @see com.sasis.service.SeatManager#getSeat(String id)
     */
    public Seat getSeat(final String id) {
        return dao.getSeat(new Integer(id));
    }

    /**
     * @see com.sasis.service.SeatManager#saveSeat(Seat seat)
     */
    public void saveSeat(Seat seat) {
        dao.saveSeat(seat);
    }

    /**
     * @see com.sasis.service.SeatManager#removeSeat(String id)
     */
    public void removeSeat(Seat seat) {
        dao.removeSeat( seat);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
